package com.atguigu.jxc.service.impl;

import com.atguigu.jxc.dao.DamageListDao;
import com.atguigu.jxc.entity.DamageList;
import com.atguigu.jxc.service.DamageListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 杨林
 * @create 2023-01-29 17:16 星期日
 * description:
 */
@Service
public class DamageListServiceImpl implements DamageListService {

    @Autowired
    DamageListDao damageListDao;

    /**
     * damageList
     * @param damageList
     */
    @Override
    public void save(DamageList damageList) {

        damageListDao.save(damageList);
    }

    /**
     * 报损单查询
     * @param sTime
     * @param eTime
     * @return
     */
    @Override
    public List<DamageList> list(String sTime, String eTime) {

        List<DamageList> damageList = damageListDao.list(sTime,eTime);
        return damageList;
    }
}
